package cn.weixin.service.handle;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import cn.weixin.common.msg.req.InputMessage;

/**
 * @author Han
 */
@Component
public class HandlerFactory {
	@Autowired
	private Map<String, MessageHandler> handlers = new HashMap<String,MessageHandler>();
	
	public MessageHandler getHandler(String msgType){
		return handlers.get(msgType);
	}
}
